<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Representation
 *
 * @ORM\Table(name="Representation")
 * @ORM\Entity
 */
class Representation
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var Visibility
     *
     * @ORM\ManyToOne(targetEntity="Visibility")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="visibility_id", referencedColumnName="id")
     * })
     */
    private $visibility;

    /**
     * @var Person
     *
     * @ORM\ManyToOne(targetEntity="Person")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="person_id", referencedColumnName="id")
     * })
     */
    private $person;

    /**
     * @var Company
     *
     * @ORM\ManyToOne(targetEntity="Company")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="company_id", referencedColumnName="id")
     * })
     */
    private $company;

    /**
     * @var Representationtype
     *
     * @ORM\ManyToOne(targetEntity="Representationtype")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="representationtype_id", referencedColumnName="id")
     * })
     */
    private $representationtype;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set visibility
     *
     * @param Luka\StoreBundle\Entity\Visibility $visibility
     */
    public function setVisibility(\Luka\StoreBundle\Entity\Visibility $visibility)
    {
        $this->visibility = $visibility;
    }

    /**
     * Get visibility
     *
     * @return Luka\StoreBundle\Entity\Visibility 
     */
    public function getVisibility()
    {
        return $this->visibility;
    }

    /**
     * Set person
     *
     * @param Luka\StoreBundle\Entity\Person $person
     */
    public function setPerson(\Luka\StoreBundle\Entity\Person $person)
    {
        $this->person = $person;
    }

    /**
     * Get person
     *
     * @return Luka\StoreBundle\Entity\Person 
     */
    public function getPerson()
    {
        return $this->person;
    }

    /**
     * Set company
     *
     * @param Luka\StoreBundle\Entity\Company $company
     */
    public function setCompany(\Luka\StoreBundle\Entity\Company $company)
    {
        $this->company = $company;
    }

    /**
     * Get company
     *
     * @return Luka\StoreBundle\Entity\Company 
     */
    public function getCompany()
    {
        return $this->company;
    }

    /**
     * Set representationtype
     *
     * @param Luka\StoreBundle\Entity\Representationtype $representationtype
     */
    public function setRepresentationtype(\Luka\StoreBundle\Entity\Representationtype $representationtype)
    {
        $this->representationtype = $representationtype;
    }

    /**
     * Get representationtype
     *
     * @return Luka\StoreBundle\Entity\Representationtype 
     */
    public function getRepresentationtype()
    {
        return $this->representationtype;
    }
}